package com.zsrt.java.day20161223.xww.demo02;

import java.util.Scanner;

import org.junit.Test;

public class Compare {
	@Test
	public void test02(){
		Scanner sc=new Scanner(System.in);
		System.out.println("请输入第一个数a：");
		int a=sc.nextInt();
		System.out.println("请输入第二个数b：");
		int b=sc.nextInt();
		sc.close();
		boolean result=a>b;
		if(result){
			int temp = a; 
			a = b; 
			b = temp;
			System.out.println("a:"+a+"b:"+b);
		}else{
			System.out.println("a:"+a+"b:"+b);
		}
		
	}

}
